﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysDictData.Request;
/// <summary>
/// 获取系统字典数据列表请求实体
/// </summary>
public class RequestGetSysDictDataListModel : RequestBaseModel
{
    /// <summary>
    /// 字典标签
    /// </summary>
    public string? DictLabel { get; set; }
    /// <summary>
    /// 字典键值
    /// </summary>
    public string? DictValue { get; set; }
    /// <summary>
    /// 字典类型
    /// </summary>
    public string? DictType { get; set; }
    /// <summary>
    /// 数据类型（0=文本、1=图片、2=音频、3=视频、4=json字符串）
    /// </summary>
    public string? DataType { get; set; }
    /// <summary>
    /// 是否默认（Y是 N否）
    /// </summary>
    [StringLength(1, ErrorMessage = "字典数据默认项长度为1")]
    public string? IsDefault { get; set; }
    /// <summary>
    /// 状态（0正常 1停用）
    /// </summary>
    [StringLength(1, ErrorMessage = "字典数据状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string OrderBy { get; set; } = string.Empty;
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool IsDesc { get; set; }
}

